<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.w3.org/1999/xhtml" layout:decorate="~{layout/storelayout}">
<head>
    <meta charset="UTF-8">
    <title>修改活动</title>
</head>
<body>
<!--  修改活动  -->
<div layout:fragment="content">
    <form th:action="@{/storeActivity/upd}" method="post" th:each="activity:${list}" class="layui-form">
        <div class="layui-input-inline">

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-bg-white">活动内容：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="content" name="content" required  lay-verify="required" th:value="${activity.content}" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-bg-white">开始时间：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="start" required  lay-verify="required" th:value="${activity.start}" id="date1" autocomplete="off" class="layui-input" >
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-bg-white">结束时间：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="stop" required  lay-verify="required" th:value="${activity.stop}" id="date2" autocomplete="off" class="layui-input" >
                    </div>
                </div>
            </div>




            <div class="layui-input-inline login-btn" style="width: 85%">
                <button type="submit" lay-submit lay-filter="sub" class="layui-btn layui-btn-primary">更改</button>
            </div>

        </div>
    </form>

    <script src="/static/layui/layui.js"></script>
    <script type="text/javascript">
        layui.use(['form','jquery','layer','laydate'], function () {
            var form = layui.form;
            var laydate = layui.laydate;
            var $ = layui.jquery;
            var layer = layui.layer;

            //日期
            laydate.render({
                elem: '#date'
            });
            laydate.render({
                elem: '#date1'
            });
            laydate.render({
                elem: '#date2'
            });

        })
    </script>
</div>
</body>
</html>